package com.lagou.execute;

import com.lagou.config.Configuration;
import com.lagou.config.MapperStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by seemygo on 2020/11/13.
 */
public interface Execute {
    //定义jdbc处理操作数据库处理方案
    <E>List<E> query(Configuration configuration, MapperStatement mapperStatement,Object ...param) throws Exception;


    /**
     * jdbc直接与数据库交互之  插入操作、修改、删除
     * @param configuration
     * @param mapperStatement
     * @param params
     */
    void execute(Configuration configuration, MapperStatement mapperStatement, Object[] params) throws Exception;
}
